package com.aaa.system.service.impl;

import com.aaa.entity.UUserPermission;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.aaa.system.service.UserPermissionService;
import com.aaa.system.dao.UserPermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 祝云松
* @description 针对表【u_user_permission】的数据库操作Service实现
* @createDate 2023-03-02 10:11:39
*/
@Service
public class UserPermissionServiceImpl extends ServiceImpl<UserPermissionMapper, UUserPermission>
    implements UserPermissionService{

    @Autowired
        private  UserPermissionMapper userPermissionMapper;
    @Override
    public List<UUserPermission> findAll() {
        List<UUserPermission> all = userPermissionMapper.findAll();
        return all;
    }

    @Override
    public List<UUserPermission> businessInfoAll() {
        List<UUserPermission> uUserPermissions = userPermissionMapper.businessFinAll();
        return uUserPermissions;
    }
}




